package com.foreverwin.mes.lims.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Levy
 * @since 2020-03-12
 */
public class InspectTask extends Model<InspectTask> {

    private static final long serialVersionUID = 1L;

   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
   @TableField("SITE")
   private String site;
   @TableField("TASK_ID")
   private String taskId;
   /**
    * 任务类型  A 自动  M 手动
    */
   @TableField("TASK_TYPE")
   private String taskType;
   /**
    * 任务状态 NEW SAMPLE
    */
   @TableField("TASK_STATUS")
   private String taskStatus;
   @TableField("OBJECT")
   private String object;
   /**
    * 检验计划
    */
   @TableField("PLAN_BO")
   private String planBo;
   /**
    * 检验类型
    */
   @TableField("INSPECT_TYPE")
   private String inspectType;
   @TableField("ITEM")
   private String item;
   @TableField("ITEM_DESC")
   private String itemDesc;
   @TableField("CREATED_USER")
   private String createdUser;
   @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
   @TableField("UPDATED_USER")
   private String updatedUser;
   @TableField("UPDATED_DATE_TIME")
   private Date updatedDateTime;
   /**
    * 任务开始时间
    */
   @TableField("START_TIME")
   private Date startTime;
   /**
    * 任务完成时间
    */
   @TableField("END_TIME")
   private Date endTime;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getTaskId() {
      return taskId;
   }

   public void setTaskId(String taskId) {
      this.taskId = taskId;
   }

   public String getTaskType() {
      return taskType;
   }

   public void setTaskType(String taskType) {
      this.taskType = taskType;
   }

   public String getTaskStatus() {
      return taskStatus;
   }

   public void setTaskStatus(String taskStatus) {
      this.taskStatus = taskStatus;
   }

   public String getObject() {
      return object;
   }

   public void setObject(String object) {
      this.object = object;
   }

   public String getPlanBo() {
      return planBo;
   }

   public void setPlanBo(String planBo) {
      this.planBo = planBo;
   }

   public String getInspectType() {
      return inspectType;
   }

   public void setInspectType(String inspectType) {
      this.inspectType = inspectType;
   }

   public String getItem() {
      return item;
   }

   public void setItem(String item) {
      this.item = item;
   }

   public String getItemDesc() {
      return itemDesc;
   }

   public void setItemDesc(String itemDesc) {
      this.itemDesc = itemDesc;
   }

   public String getCreatedUser() {
      return createdUser;
   }

   public void setCreatedUser(String createdUser) {
      this.createdUser = createdUser;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public String getUpdatedUser() {
      return updatedUser;
   }

   public void setUpdatedUser(String updatedUser) {
      this.updatedUser = updatedUser;
   }

   public Date getUpdatedDateTime() {
      return updatedDateTime;
   }

   public void setUpdatedDateTime(Date updatedDateTime) {
      this.updatedDateTime = updatedDateTime;
   }

   public Date getStartTime() {
      return startTime;
   }

   public void setStartTime(Date startTime) {
      this.startTime = startTime;
   }

   public Date getEndTime() {
      return endTime;
   }

   public void setEndTime(Date endTime) {
      this.endTime = endTime;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String TASK_ID = "TASK_ID";

   public static final String TASK_TYPE = "TASK_TYPE";

   public static final String TASK_STATUS = "TASK_STATUS";

   public static final String OBJECT = "OBJECT";

   public static final String PLAN_BO = "PLAN_BO";

   public static final String INSPECT_TYPE = "INSPECT_TYPE";

   public static final String ITEM = "ITEM";

   public static final String ITEM_DESC = "ITEM_DESC";

   public static final String CREATED_USER = "CREATED_USER";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String UPDATED_USER = "UPDATED_USER";

   public static final String UPDATED_DATE_TIME = "UPDATED_DATE_TIME";

   public static final String START_TIME = "START_TIME";

   public static final String END_TIME = "END_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "InspectTask{" +
         "handle = " + handle +
         ", site = " + site +
         ", taskId = " + taskId +
         ", taskType = " + taskType +
         ", taskStatus = " + taskStatus +
         ", object = " + object +
         ", planBo = " + planBo +
         ", inspectType = " + inspectType +
         ", item = " + item +
         ", itemDesc = " + itemDesc +
         ", createdUser = " + createdUser +
         ", createdDateTime = " + createdDateTime +
         ", updatedUser = " + updatedUser +
         ", updatedDateTime = " + updatedDateTime +
         ", startTime = " + startTime +
         ", endTime = " + endTime +
         "}";
   }
}